<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .divv{
            width: 400px;
            height: 300px;
            border: 2px solid black;
            display: flex;
            flex-direction: row;
            justify-content:end;
        }
        .text{
            width: 50px;
            height: 50px;
            background-color: blue;
        }
        .text1{
            width: 50px;
            height: 50px;
            background-color: pink;
        }
    </style>
</head>
<body>
    <div class="divv">
        <p class="text">文本1</p>
        <p class="text1">文本2</p>
        <p class="text1">文本2</p>
    </div>
</body>
</html>